package adv7.thread2;

public class Tickets {
	private int nums = 100;

	public Tickets(int n) {
		this.nums = n;
	}

	public void buy() {
		// if (nums >= 1)
		nums--;
	}

	public int getNums() {
		return this.nums;
	}
}
